//
//  CustomCommentTableViewCell.m
//  ChunLaiZhuangClient
//
//  Created by zzs on 16/3/2.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "CustomCommentTableViewCell.h"

@implementation CustomCommentTableViewCell

- (void)awakeFromNib {
    // Initialization code
    self.headImageView.layer.cornerRadius=30;
    self.headImageView.clipsToBounds=YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setCommentModel:(CommentModel *)commentModel{
    _commentModel=commentModel;
    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:commentModel.avatar] placeholderImage:nil];
    self.nameLabel.text=commentModel.firstname;
    self.timeLabel.text=commentModel.date_added;
    self.contentLabel.text=commentModel.text;

    
}
@end
